package com.changgou.good.service;

import com.changgou.goods.pojo.Goods;
import com.changgou.goods.pojo.Spu;
import com.github.pagehelper.PageInfo;

public interface SpuService {
    /**
     * 保存商品
     *
     * @param goods
     */
    void saveGoods(Goods goods);

    /***
     *根据id查找goods
     */

    Goods findByGoodsById(Long id);


    void audit(Long id);
    void pull(Long spuId);
    void put(Long spuId);

    void logicDelete(Long spuId);

    void restore(Long spuId);

    PageInfo<Spu> findPage(Spu spu, int page, int size);

}
